import request from '@/utils/request'
// 查询
export const QueryListAPI = params => request.get('/data', { params })
// 删除
export const DeleteListAPI = id => request.delete(`/data/${id}`)
// 新增
export const AddedListAPI = data => request.post('/data', data)
// 数据回显
export const CompileListAPI = id =>request.get(`/data/${id}`)
// 编辑
export const EditTheListAPI = data => request.put(`/data/${data.id}`,data)
// 搜索
export const SearchListingsAPI = name => request.get(`/data/?name=${name}`) 